Operating System


Q171.

The state of a process after it encounters an I/O instruction is?
GateOverflow

Q172.

At a particular time the value of counting semaphore is 10. It will become 7 after:
GateOverflow

Q173.

Consider a non-negative counting semaphore S. The operation P(S) decrements S, and V(S) increments S. During an execution, 20 P(S) operations and 12V(S) operations are issued in some order. The largest initial value of S for which at least one P(S) operation will remain blocked is ________.
GateOverflow

Q174.

At a particular time of computation the value of a counting semaphore is 7. Then 20 P operations and x V operations were completed on this semaphore. If the new value of semaphore is 5, x will be
GateOverflow

Q175.

Which of the following does not interrupt a running process ?
GateOverflow

Q176.

The hardware implementation which provides mutual exclusion is
GateOverflow

Q177.

Which is the correct definition of a valid process transition in an operating system?
GateOverflow

Q178.

Consider the following threads, T_1, T_2, \text{ and }T_3 executing on a single processor, synchronized using three binary semaphore variables, S_1, S_2, \text{ and }S_3, operated upon using standard wait() and signal(). The threads can be context switched in any order and at any time.Which initialization of the semaphores would print the sequence BCABCABCA ...?
GateOverflow

Q179.

Consider the following pseudocode, where Sis a semaphore initialized to 5 in line #2 and counter is a shared variable initialized to 0 in line #1. Assume that the increment operation in line #7 is not atomic.1. int counter =0; 2. Semaphore S= init(5); 3. void parop(void) 4. { 5. wait(S); 6. wait(S); 7. counter++; 8. signal(S); 9. signal(S); 10. } If five threads execute the function parop concurrently, which of the following program behavior(s) is/are possible?[MSQ]
GateOverflow

Q180.

The process state transition diagram in the below figure is representative of
GateOverflow